package com.itheima.exerciseTest.method01_09.method1;

public class Rabbit extends Animal {
    public Rabbit() { }

    public Rabbit(int age, int numOfLegs) { super(age, numOfLegs); }

    @Override
    public void eat() {
        System.out.println("年龄为" + this.getAge() + "的" +this.getNumOfLegs()+"条腿的兔子正在吃狗尾草");
    }
}
